home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Rectangle.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  1.9 KB  |  79 lines

  1. //
  2. //  $VER: Rectangle.h   1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_RECTANGLE_H
  28. #define CPP_TWIMUI_RECTANGLE_H
  29.  
  30. #ifndef CPP_TWIMUI_AREA_H
  31. #include <classes/twimui/area.h>
  32. #endif
  33.  
  34. class MUIRectangle : public MUIArea
  35.     {
  36.     protected:
  37.         virtual const ULONG ClassNum() const;
  38.     public:
  39.         MUIRectangle(const struct TagItem *t) : MUIArea(MUIC_Rectangle) { init(t); };
  40.         MUIRectangle(const Tag, ...);
  41.         MUIRectangle() : MUIArea(MUIC_Rectangle) { };
  42.         MUIRectangle(const MUIRectangle &);
  43.         virtual ~MUIRectangle();
  44.         MUIRectangle &operator= (const MUIRectangle &);
  45.         STRPTR BarTitle() const { return((STRPTR)get(MUIA_Rectangle_BarTitle,NULL)); };
  46.         BOOL HBar() const { return((BOOL)get(MUIA_Rectangle_HBar,FALSE)); };
  47.         BOOL VBar() const { return((BOOL)get(MUIA_Rectangle_VBar,FALSE)); };
  48.     };
  49.  
  50. class MUIHBar : public MUIRectangle
  51.     {
  52.     public:
  53.         MUIHBar(const ULONG size)
  54.             :   MUIRectangle(
  55.                     MUIA_Rectangle_HBar, TRUE,
  56.                     MUIA_FixHeight     , size,
  57.                     TAG_DONE)
  58.             { };
  59.         MUIHBar(const MUIHBar &p) : MUIRectangle((MUIRectangle &)p) { };
  60.         virtual ~MUIHBar();
  61.         MUIHBar &operator= (const MUIHBar &);
  62.     };
  63.  
  64. class MUIVBar : public MUIRectangle
  65.     {
  66.     public:
  67.         MUIVBar(const ULONG size)
  68.             :   MUIRectangle(
  69.                     MUIA_Rectangle_VBar, TRUE,
  70.                     MUIA_FixWidth      , size,
  71.                     TAG_DONE)
  72.             { };
  73.         MUIVBar(const MUIVBar &p) : MUIRectangle((MUIRectangle &)p) { };
  74.         virtual ~MUIVBar();
  75.         MUIVBar &operator= (const MUIVBar &);
  76.     };
  77.  
  78. #endif
  79.